package com.example.dameng.service.impl;

import com.example.dameng.entity.*;
import com.example.dameng.mapper.SubMapper;
import com.example.dameng.service.SubService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("SubService")
public class SubServiceImpl implements SubService {
    @Autowired
    SubMapper subMapper;

    @Override
    public List<T_community> getStreet(int adminCode){ return subMapper.getStreet(adminCode);}
    @Override
    public List<StreetList> getStreetList(int adminCode){
        return subMapper.getStreetList(adminCode);
    }

    @Override
    public Double getSupplyNum(String date,int communityCode){ return subMapper.getSupplyNum(date,communityCode);}
    @Override
    public int setSupplyStatus(T_supplystatus supplyStatus){return subMapper.setSupplyStatus(supplyStatus);}
    @Override
    public SubReport getMonthReport(String month, String communityName){ return subMapper.getMonthReport(month,communityName);}
}
